<template>
  <div>
    <top-nav from="true" :title="borrow.borrowTitle"></top-nav>
    <!--项目介绍-->
    <div v-html="borrow.borrowContent"></div>
  </div>
</template>

<script>
  import { base, api, open } from '@/common/constant'
  import TopNav from '@/components/TopNav'

  export default {
    name: 'product-descript',
    data () {
      return {
        borrow: {}
      }
    },
    mounted (){
      this.$nextTick(function () {
        this.getData()
      })
    },
    methods: {
      getData: function () {
        this.$store.dispatch('post', {
          url: api.borrow,
          params: {borrowEid: this.$route.params.pid},
          ok: open.borrowDescription,
          fail: base.emptyList,
          that: this
        })
      }
    },
    components: {
      TopNav
    }
  }
</script>
